<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<link href="Css/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
<!--
function check(){
	var name = g('name');
	var value = g('value');
	var comment = g('comment');
	if(name.value==''){
		alert('请输入名称');
		name.focus();
		return false;
	}
	if(value.value==''){
		alert('请输入值');
		value.focus();
		return false;
	}
	return true;
}
function g(itemId){
	return document.getElementById(itemId);
}
// -->
</script>
<style type="text/css">
<!--
body {
	background-color: #ddeef2;
}
-->
</style>

</head>

<body>
<div id="main_title"><a href="#">后台管理中心</a>—系统设置</div>
<div id="main_content">
  <form action="index.php?controller=BoConfig&action=save" method="post" name="form1" id="form1" onsubmit="return check();">
	<table width="100%" border="0" cellspacing="2" cellpadding="2">
		<tr>
		  <td width="12%" class="title">名称</td>
		  <td><input type="text" name="name" id="name" value="<?=$result['name']?>"/></td>
		</tr>
		<tr>
		  <td class="title">值</td>
		  <td><input type="text" name="value" id="value" value="<?=$result['value']?>"/></td>
		</tr>
        <tr>
		  <td class="title">注释</td>
		  <td><textarea type="text" name="comment" id="comment" /><?=$result['comment']?></textarea></td>
		</tr>
		<tr>
		  <td colspan="2" align="center"><input type="submit" name="sub" id="sub" value="提交" /></td>
		</tr>
	</table>
	<input name="id" type="hidden" id="id" value="<?=$result['id']?>"/>
  </form>
</div>
<div id="main_copy">Copyright&copy;2003 – 2009 ITeam Monkey. All Rights Reserved ITeam Monkey 版权所有 </div>
</body>
</html>
